﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WCFMastering.Framework
{
    public static class InProcFactory
    {
        public static I CreateInstance<S, I, C>(C callback)
            where I : class
            where S : class,I
        {
            InstanceContext<C> context = new InstanceContext<C>(callback);
            return CreateInstance<S, I, C>(context);
        }
        public static I CreateInstance<S, I, C>(InstanceContext<C> context)
            where I : class
            where S : class,I
        {
            throw new IndexOutOfRangeException();
            //HostRecord hostRecord = GetHostRecord<S, I>();
            //return DuplexChannelFactory<I, C>.CreateChannel(context, Binding,
            //hostRecord.Address);
        }
        //More members
    }
}
